<div>
    <hr>
    <ul class="breadcrumb">
        <li>
            <a href="#">管理员</a> <span class="divider">|</span>
        </li>
        <li>
            <a href="#">编辑</a>
        </li>
    </ul>
    <hr>
</div>
<div class="row-fluid sortable">
    <div class="box span12">
        <div class="box-header" data-original-title>
            <h2><i class="icon-edit"></i><span class="break"></span>管理员</h2>
            <div class="box-icon">
                <a href="#" class="btn-setting"><i class="icon-wrench"></i></a>
                <a href="#" class="btn-minimize"><i class="icon-chevron-up"></i></a>
                <a href="#" class="btn-close"><i class="icon-remove"></i></a>
            </div>
        </div>
        <div class="box-content">
            <form class="form-horizontal" action="<?php echo url('manager/edit'); ?>" method="post" id="editForm">
                <fieldset>
                    <div class="control-group">
                        <label class="control-label" for="typeahead">管理员名称 </label>
                        <div class="controls">
                               <input  readonly="readonly" name="userName" type="text" value="<?php echo $user['name']; ?>" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="date01">输入密码</label>
                        <div class="controls">
                            <input class="required" name="passwd1" type="password"  />
                        </div>
                    </div>	
                    <div class="control-group">
                        <label class="control-label" for="date01">重复密码</label>
                        <div class="controls">
                            <input class="required" name="passwd2" type="password" />
                        </div>
                    </div>
                    <div class="form-actions">
                        <input type="submit" value="修改" id="submit" class="btn btn-primary" /> 
                        <input type="hidden" name="id" value="<?php echo $user['id']; ?>" />
                    </div>
                </fieldset>
            </form>   
        </div>
    </div><!--/span-->
</div><!--/row-->
<script type="text/javascript">
    $(document).ready(function(){
     $("#submit").click(function(){
            submitForm('#editForm',"<?php echo url('manager'); ?>");	
        });
    });
</script>
